﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using SelfMadeMillionaire.Core;
using SelfMadeMillionaire.Core.Entities;
using SelfMadeMillionaire.Core.Enums;
using SelfMadeMillionaire.Core.Repositories;
using SelfMadeMillionaire.Core.Services;
using SelfMadeMillionaire.Core.Specifications;

namespace SelfMadeMillionaire.BLL.Services
{
	public class SymbolService : ISymbolService
	{
		private readonly ISymbolRepository _symbolRepository;

		public SymbolService(ISymbolRepository symbolRepository)
		{
			_symbolRepository = symbolRepository;
		}

        public IEnumerable<Symbol> GetAll()
        {
            return _symbolRepository.GetAll();
        }

        public Symbol Add(Symbol item)
		{
            return _symbolRepository.Add(item);
		}

        public Symbol Update(Symbol item)
		{
            return _symbolRepository.Update(item);
		}

		public Symbol Get(int id)
		{
			return _symbolRepository.Get(id);
		}
        
		public void Remove(int id)
		{
            _symbolRepository.Remove(id);
		}
	}
}